﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLySimSo
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
            frmLogon obj = new frmLogon();
            obj.ShowDialog();
        }

        private void comboBox5_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (this.cbxChonMang.SelectedIndex == 0)
            {
                this.cbxChonDauSo.Items.Clear();
                string[] installs = new string[] { "091", "094", "0123", "0125","0127" };
                this.cbxChonDauSo.Items.AddRange(installs);
            }
            if (this.cbxChonMang.SelectedIndex == 1)
            {
                this.cbxChonDauSo.Items.Clear();
                string[] installs = new string[] { "090", "093", "0120","0121","0122","0126","0128" };
                this.cbxChonDauSo.Items.AddRange(installs);
            }
            if (this.cbxChonMang.SelectedIndex == 2)
            {
                this.cbxChonDauSo.Items.Clear();
                string[] installs = new string[] { "097", "098", "0165", "0166","0167","0168","0169" };
                this.cbxChonDauSo.Items.AddRange(installs);
            }
        }
    }
}
